/*
/ _____)             _              | |
( (____  _____ ____ _| |_ _____  ____| |__
\____ \| ___ |    (_   _) ___ |/ ___)  _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech

Description: Implements the generic UART driver

License: Revised BSD License, see LICENSE.TXT file include in the project

Maintainer: Miguel Luis and Gregory Cristian
*/
#ifndef __UART_H__
#define __UART_H__
#include <stdint.h>

typedef enum 
{
	Uart1,
	Uart2
}Uart_t;

void uart_init(Uart_t uart, uint32_t bute);
void OpenUsart(Uart_t uart);
void CloseUsart(Uart_t uart);
void OpenUsartRx(Uart_t uart);
void CloseUsartRx(Uart_t uart);
int dbg_printf(char *fmt, ...);
int bd_output(char *fmt, ...);

#endif  // __UART_H__
